package com.alibaba.service.impl;


import com.alibaba.dao.CouponDao;
import com.alibaba.pojo.CouponBean;
import com.alibaba.service.CouponService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CouponServiceImpl implements CouponService {
    @Autowired
    private CouponDao couponDao;
    @Override
    public IPage<CouponBean> ResultPageVo() {
        IPage<CouponBean> objectPage = new Page<>(1, 2);
        IPage<CouponBean> couponBeanIPage = couponDao.selectPage(objectPage, null);
        return couponBeanIPage;
    }
}
